package com.wehealth.util;

import java.util.ArrayList;
import java.util.List;

import com.wehealth.R;

import android.util.Log;

public class QuestionnaireDataManager {
	
	private static final String TAG="QuestionnaireDataManager     ";
	
	//基本情况
	private  float weight =0;
	private  int height =0;
	private  float BMIValue=0;
	private  int score1 = 0;
	private  int score2 = 0;
	private  int score3 = 0;
	private  int mPlanId = 0; 
	
	private List<String> depart3StrList = new ArrayList<String>();
	
	   private static QuestionnaireDataManager mQuestionnaire;  
	   public static QuestionnaireDataManager getInstance() {  
	        if(mQuestionnaire == null){
	        	mQuestionnaire = new QuestionnaireDataManager();  
	        }
	        return mQuestionnaire;  
	    }  
	   
	   
	   public void setWeight(float weight){
		  this. weight = weight;
	   }
	   
	   public void setheight(int height){
		  this. height = height;
	   }
	
	
	   public float getBMIValue(){
		   BMIValue = weight/((height/100)^2);
		   Log.d("SIMMON",TAG+"BMIValue = "+BMIValue);
		   return BMIValue;
	   }
	

	   
	   public void  setScore1(int score){
	   		score1 = score;
	   }
	   
	   public void  setScore2(int score){
		   		score2 = score;
	   }
	   
	   public void  setScore3(int score){
	   		score3 = score;
	   }
	   
	   public List<String> getStringList(){
		   return depart3StrList;
	   }
	   
	   
	   public int  getScore(){
		   int score =0;
		   score = score2+score3+score1;
		   return score;
	   }
	   
	   
	   public void setPlanId(int ID){
		   mPlanId = ID;
	   }
	   
	   public int getPlanId(){
		   return mPlanId;
	   }


}
